package cn.stronglink.asset.module.sys.role.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import cn.stronglink.asset.model.Role;
import cn.stronglink.asset.model.User;

public interface RoleMapper {
	
	public List<Role> qryRoles(@Param("params") Map<String, Object> params);

	public void insertRoles(User user);

	public void updateRoleById(Role role);

	public void delRole(@Param("id") Long id);

	public Integer getRoleUsers(@Param("id") Long id);

	public int getRoleByName(@Param("name") String name);

	public void insertRole(Role role);
	
}
